-- msg_end_sync
-- Create by weism
-- 通知客户端同步完成

return function(lpc)
    local result = lpc.result;
    local sync = lpc.sync;

    -- 更新下数据
    ME.user.dbase:set("sync", sync);
    SyncM.endSync(result == 1);

    if (result == 1) then
        cclog("数据同步成功");

        SyncM.assureEndSync(sync);
    else
        ME.stopGame();
        DungeonServiceM.clearMsgQue();
    end
end
